#!/usr/bin/env python
#  -*- coding: utf-8 -*-

import os
import sys


def main(argv=None):
    # param = argv[1] or sys.argv[:]
    # if param == 'ip':
    #     from web.models.base import IPAddressDB
    #     IPAddressDB.objects.ip_db_fetch()
    pass


if __name__ == "__main__":
    os.environ.setdefault("DJANGO_SETTINGS_MODULE", "violet_demo.settings")
    try:
        import django
        django.setup()
        main(sys.argv)
        print('Done!')
    except ImportError:
        raise ImportError(
            "Couldn't import Django. Are you sure it's installed and "
            "available on your PYTHONPATH environment variable? Did you "
            "forget to activate a virtual environment?"
        )
